package com.loubii.sunshineSchool.constants;

import com.loubii.sunshineSchool.R;

public class CardRes {
    public static int TYPE_CHUXU = 1;

    private static String cardNameWithRedBg = "课程辅导";
    private static String cardNameWithGreenBg = "失物招领";
    private static String cardNameWithBlueBg = "寻找伙伴";


    public static int getCardBg(String cardName) {
        if (cardNameWithRedBg.equals(cardName))
            return R.drawable.lin_card_bg_red;
        else if (cardNameWithBlueBg.equals(cardName))
            return R.drawable.lin_card_bg_blue;
        else if (cardNameWithGreenBg.equals(cardName))
            return R.drawable.lin_card_bg_green;
        else
            return R.drawable.lin_card_bg_yellow;
    }

}
